import { createStore } from 'vuex'

export default createStore({
  state: {
    user: {
      isLogin: false,
      username: '未知'
    }
  },
  mutations: {
    login(state) {
      state.user = { ...state.user, isLogin: true, username: '张三' }
    } 
  },
  actions: {
  },
  modules: {
  }
})
